//
//  NSURL+NBL.m
//  NBLiOSTools
//
//  Created by GangX-yangjh on 2021/12/17.
//

#import "NSURL+NBL.h"

@implementation NSURL (NBL)

- (void)openURL
{
    if (@available(iOS 10.0, *)) {
        [[UIApplication sharedApplication] openURL:self options:@{}
                                 completionHandler:^(BOOL success) {}];
    } else {
        // Fallback on earlier versions
        [[UIApplication sharedApplication] openURL:self];
    }
}

@end
